package com.esri.core.geometry;

/* loaded from: classes.dex */
public class Proximity2DResult {
    Point2D a = new Point2D();
    int b = -1;
    double c;

    public boolean isEmpty() {
        return this.b < 0;
    }

    public Point getCoordinate() {
        if (isEmpty()) {
            throw new GeometryException("invalid call");
        }
        return new Point(this.a.x, this.a.y);
    }

    public int getVertexIndex() {
        if (isEmpty()) {
            throw new GeometryException("invalid call");
        }
        return this.b;
    }

    public double getDistance() {
        if (isEmpty()) {
            throw new GeometryException("invalid call");
        }
        return this.c;
    }

    void a(double d, double d2, int i, double d3) {
        this.a.x = d;
        this.a.y = d2;
        this.b = i;
        this.c = d3;
    }
}
